/*
 * @Author: chris
 * @Date: 2022-01-25 10:34:55
 * @LastEditors: chris
 * @LastEditTime: 2022-01-25 15:00:36
 * @FilePath: \midway-project\src\controller\home.controller.ts
 */
import { Controller, Get, Inject } from '@midwayjs/decorator';
import { Context } from 'vm';

@Controller('/')
export class HomeController {
  @Inject()
  ctx: Context;
  @Get('/')
  async home(): Promise<string> {
    return 'Hello Midwayjs!';
  }
}
